import fetch from 'utils/fetch'

export default { // 赞助
  dict (params) { // 字典数据
    return fetch({
      url: params,
      params: params
    })
  },
  business_list (params) { // 招商计划列表
    return fetch({
      url: '/sponsored/org/mer/list/select',
      params
    })
  },
  business_add (data, options) { // 新增招商计划
    return fetch({
      url: '/sponsored/org/mer/insert',
      method: 'post',
      dataType: 'json',
      data,
      options
    })
  },
  business_edit (data, options) { // 编辑招商计划
    return fetch({
      url: '/sponsor/mer/update',
      method: 'put',
      dataType: 'json',
      data,
      options
    })
  },
  business_changestate (params) { // 招商计划列表-修改状态 开关状态方法
    return fetch({
      url: '/sponsor/mer/status/update',
      method: 'put',
      params: params
    })
  },
  business_del (params) { // 招商计划列表-修改状态 开关状态方法
    return fetch({
      url: '/sponsor/mer/status/delete',
      method: 'delete',
      params: params
    })
  },
  business_detailed (params) { // 招商计划列表-详情
    return fetch({
      url: '/sponsor/mer/select',
      params
    })
  },
  talk_list (params) { // 约谈列表
    return fetch({
      url: '/sponsored/org/talk/list/select',
      params
    })
  },
  talk_del (params) { // 约谈列表-删除
    return fetch({
      url: '/sponsored/org/talk/delete',
      method: 'delete',
      params
    })
  },
  support_list (params) { // 赞助计划 列表
    return fetch({
      url: '/sponsored/org/plan/list/select',
      params
    })
  },
  support_add (data, options) { // 赞助计划 新增
    return fetch({
      url: '/sponsored/org/plan/insert',
      method: 'post',
      dataType: 'json',
      data,
      options
    })
  },
  support_edit (data, options) { // 赞助计划 编辑
    return fetch({
      url: '/sponsored/org/plan/update',
      method: 'put',
      dataType: 'json',
      data,
      options
    })
  },
  support_changestate (data, options) { // 赞助计划列表-修改状态 开关状态方法
    return fetch({
      url: '/sponsored/org/plan/status/update',
      method: 'put',
      data,
      options
    })
  },
  support_del (params) { // 赞助计划列表-修改状态 开关状态方法
    return fetch({
      url: '/sponsored/org/plan/status/delete',
      method: 'delete',
      params
    })
  },
  support_detailed (params) { // 赞助计划列表-详情
    return fetch({
      url: '/sponsored/org/plan/select',
      params
    })
  }
}
